package shopping;

public class Cart {
	public String name;
	public double price;
	public int num;
	public Cart(String name, double price, int num) {
		super();
		this.name = name;
		this.price = price;
		this.num = num;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	@Override
	public String toString() {
		return "Cart [name=" + name + ", price=" + price + ", num=" + num + "]";
	}
	
}
